//package com.parking.mgr.useraccount.controller;
//
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.parking.mgr.common.annotion.BusinessLog;
//import com.parking.mgr.common.annotion.LoginAuth;
//import com.parking.mgr.common.annotion.PermissionUrl;
//import com.parking.mgr.common.enums.LogAnnotionOpTypeEnum;
//import com.parking.mgr.common.pojo.page.PageResult;
//import com.parking.mgr.common.pojo.response.Result;
//import com.parking.mgr.useraccount.model.param.LoginTokenParam;
//import com.parking.mgr.useraccount.model.vo.LoginTokenVO;
//import com.parking.mgr.useraccount.service.LoginTokenService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
// * @ClassName LoginTokenController
// * @Description 登录令牌
// * @Auther: zhijianpu
// * @Date: 2023/6/7
// */
//@Api(value = "登录令牌", tags = {"登录令牌"})
//@RequestMapping("/api/login/token")
//@RestController
//public class LoginTokenController {
//
//    @Resource
//    private LoginTokenService loginTokenService;
//
//    @GetMapping("/list")
//    @ApiOperation(value = "登录令牌列表(分页)", notes = "登录令牌列表(分页)", httpMethod = "GET")
//    @BusinessLog(title = "登录令牌列表(分页)", opType = LogAnnotionOpTypeEnum.PAGE)
//    @LoginAuth
//    @PermissionUrl
//    public Result<?> list(LoginTokenParam loginTokenParam) {
//        IPage<LoginTokenVO> pageList =  loginTokenService.list(loginTokenParam);
//        List<LoginTokenVO> records = pageList.getRecords();
//        PageResult<LoginTokenVO> pageResult = new PageResult<>((Page) pageList);
//        return Result.success(records, pageResult);
//    }
//}
